//
//  Friends.m
//  AddressBook
//
//  Created by 苗钧豪 on 16/8/5.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "Friends.h"

@implementation Friends
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        _Name = [aDecoder decodeObjectForKey:@"Name"];
        _Phone = [aDecoder decodeObjectForKey:@"Phone"];
        _City = [aDecoder decodeObjectForKey:@"City"];
        _imgData = [aDecoder decodeObjectForKey:@"imgData"];
    }
    return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_Name forKey:@"Name"];
    [aCoder encodeObject:_Phone forKey:@"Phone"];
    [aCoder encodeObject:_City forKey:@"City"];
    [aCoder encodeObject:_imgData forKey:@"imgData"];
}
@end
